Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#4719 qemu: Add -ignore_takeover_timeout #4725

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

derekbruening
Copy link
Contributor

Adds a maximum tries when waiting for a thread to be taken over at
initialization time, instead of looping forever. When the max is hit,
a fatal error is raised, unless a newly added option
-ignore_takeover_timeout is set.

The new option is used to ignore QEMU's own thread when running DR
under QEMU. QEMU is not fully transparent and unfortunately does not
hide its thread from DR in procfs.

Manually tested both option settings under QEMU. Regression tests
with QEMU are planned for the test suite for ARM.

Issue: #4719

Adds a maximum tries when waiting for a thread to be taken over at
initialization time, instead of looping forever.  When the max is hit,
a fatal error is raised, unless a newly added option
-ignore_takeover_timeout is set.

The new option is used to ignore QEMU's own thread when running DR
under QEMU.  QEMU is not fully transparent and unfortunately does not
hide its thread from DR in procfs.

Manually tested both option settings under QEMU.  Regression tests
with QEMU are planned for the test suite for ARM.

Issue: #4719
@derekbruening derekbruening merged commit 79c8fb0 into master Feb 9, 2021
@derekbruening derekbruening deleted the i4719-qemu-ignore-timeout branch February 9, 2021 04:35
derekbruening added a commit that referenced this pull request Feb 10, 2021
Fixes a problem with the hardcoded small timeout from PR #4725 by
parameterizing the timeout in a new option -takeover_timeout_ms.  It
is set to a high value by default; the plan is to have -xarch_root set
it to a low value for the common QEMU case of running a small test,
while still overridable for large apps.

Renames -ignore_takeover_timeout to -unsafe_ignore_takeover_timeout to
indicate that it can cause problems if actual application threads are
left native.

Issue: #4719
derekbruening added a commit that referenced this pull request Feb 10, 2021
Fixes a problem with the hardcoded small timeout from PR #4725 by
parameterizing the timeout in a new option -takeover_timeout_ms.  It
is set to a high value by default; the plan is to have -xarch_root set
it to a low value for the common QEMU case of running a small test,
while still overridable for large apps.

Renames -ignore_takeover_timeout to -unsafe_ignore_takeover_timeout to
indicate that it can cause problems if actual application threads are
left native.

Issue: #4719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants